# !/usr/bin/env python
# -*- encoding: utf-8 -*-

class Q602_L2_SUBPC2004(object):
    """
    断带数据表

    """
    #     电文ID
    #     BIGINT
    #     19
    RECEIVEDMESSAGEID = None
    #     电文接收时间
    #     VARCHAR
    #     14
    GETTIME = None
    #     日期时间
    #     VARCHAR
    #     14
    DATE_TIME = None
    #     断带班次
    #     VARCHAR
    #     1
    SHIFT = None
    #     断带班别
    #     VARCHAR
    #     1
    TURN = None
    #     入口钢卷号
    #     VARCHAR
    #     12
    ENTRY_COIL_NO = None
    #     子卷号1
    #     VARCHAR
    #     12
    CUR_COIL_NO_1 = None
    #     子卷号2
    #     VARCHAR
    #     12
    CUR_COIL_NO_2 = None
    #     带钢断带位置
    #     INTEGER
    #     10
    BREAK_POSITION = None
    #     带钢断带速度
    #     INTEGER
    #     10
    BREAK_SPEED = None
    #     带钢断带时出口张力
    #     INTEGER
    #     10
    BREAK_DEL_TENS = None
    #     带钢断带时入口张力
    #     INTEGER
    #     10
    BREAK_ENTRY_TENS = None
    #     带钢断带时入侧板温
    #     INTEGER
    #     10
    BREAK_ENTRY_STEMP = None
    #     带钢断带时出侧板温
    #     INTEGER
    #     10
    BREAK_DEL_STEMP = None
    #     带钢断带时轧制力
    #     INTEGER
    #     10
    BREAK_ROLL_FORCE = None
    #     带钢断带时道次
    #     INTEGER
    #     10
    BREAK_PASS_NO = None
    #     带钢断带时入口侧长度
    #     INTEGER
    #     10
    BREAK_ENTER_LENGTH = None
    #     带钢断带时出口侧长度
    #     INTEGER
    #     10
    BREAK_DEL_LENGTH = None
    #     入口侧厚度
    #     INTEGER
    #     10
    BREAK_ENTER_THICKNESS = None
    #     出口侧厚度
    #     INTEGER
    #     10
    BREAK_DEL_THICKNESS = None
    #     断带时入口卷径
    #     INTEGER
    #     10
    BREAK_ENTER_DIA = None
    #     断带时出口卷径
    #     INTEGER
    #     10
    BREAK_DEL_DIA = None

    def __init__(self, p_dict: dict = None):
        self.RECEIVEDMESSAGEID = p_dict['RECEIVEDMESSAGEID']
        self.GETTIME = p_dict['GETTIME']
        self.DATE_TIME = p_dict['DATE_TIME']
        self.SHIFT = p_dict['SHIFT']
        self.TURN = p_dict['TURN']
        self.ENTRY_COIL_NO = p_dict['ENTRY_COIL_NO']
        self.CUR_COIL_NO_1 = p_dict['CUR_COIL_NO_1']
        self.CUR_COIL_NO_2 = p_dict['CUR_COIL_NO_2']
        self.BREAK_POSITION = p_dict['BREAK_POSITION']
        self.BREAK_SPEED = p_dict['BREAK_SPEED']
        self.BREAK_DEL_TENS = p_dict['BREAK_DEL_TENS']
        self.BREAK_ENTRY_TENS = p_dict['BREAK_ENTRY_TENS']
        self.BREAK_ENTRY_STEMP = p_dict['BREAK_ENTRY_STEMP']
        self.BREAK_DEL_STEMP = p_dict['BREAK_DEL_STEMP']
        self.BREAK_ROLL_FORCE = p_dict['BREAK_ROLL_FORCE']
        self.BREAK_PASS_NO = p_dict['BREAK_PASS_NO']
        self.BREAK_ENTER_LENGTH = p_dict['BREAK_ENTER_LENGTH']
        self.BREAK_DEL_LENGTH = p_dict['BREAK_DEL_LENGTH']
        self.BREAK_ENTER_THICKNESS = p_dict['BREAK_ENTER_THICKNESS']
        self.BREAK_DEL_THICKNESS = p_dict['BREAK_DEL_THICKNESS']
        self.BREAK_ENTER_DIA = p_dict['BREAK_ENTER_DIA']
        self.BREAK_DEL_DIA = p_dict['BREAK_DEL_DIA']
        pass

    def serialize(self) -> (dict):
        return self.__dict__
